<?php
class UserIndexAction extends UserAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
	}

	public function execute()
	{
		if($this->data['return']['rate']>0)
		{
			header('Location:'.C('LtUrl')->generate('User', 'Order'));
		}
		else
		{
			header('Location:'.C('LtUrl')->generate('Post', 'List'));
		}
	}
}
